package com.ruoyi.vehicle.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.vehicle.mapper.TbDriverDistributionMapper;
import com.ruoyi.vehicle.domain.TbDriverDistribution;
import com.ruoyi.vehicle.service.ITbDriverDistributionService;

/**
 * 订单司机信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class TbDriverDistributionServiceImpl implements ITbDriverDistributionService 
{
    @Autowired
    private TbDriverDistributionMapper tbDriverDistributionMapper;

    /**
     * 查询订单司机信息
     * 
     * @param informationId 订单司机信息主键
     * @return 订单司机信息
     */
    @Override
    public TbDriverDistribution selectTbDriverDistributionByInformationId(Long informationId)
    {
        return tbDriverDistributionMapper.selectTbDriverDistributionByInformationId(informationId);
    }

    /**
     * 查询订单司机信息列表
     * 
     * @param tbDriverDistribution 订单司机信息
     * @return 订单司机信息
     */
    @Override
    public List<TbDriverDistribution> selectTbDriverDistributionList(TbDriverDistribution tbDriverDistribution)
    {
        return tbDriverDistributionMapper.selectTbDriverDistributionList(tbDriverDistribution);
    }

    /**
     * 新增订单司机信息
     * 
     * @param tbDriverDistribution 订单司机信息
     * @return 结果
     */
    @Override
    public int insertTbDriverDistribution(TbDriverDistribution tbDriverDistribution)
    {
        return tbDriverDistributionMapper.insertTbDriverDistribution(tbDriverDistribution);
    }

    /**
     * 修改订单司机信息
     * 
     * @param tbDriverDistribution 订单司机信息
     * @return 结果
     */
    @Override
    public int updateTbDriverDistribution(TbDriverDistribution tbDriverDistribution)
    {
        return tbDriverDistributionMapper.updateTbDriverDistribution(tbDriverDistribution);
    }

    /**
     * 批量删除订单司机信息
     * 
     * @param informationIds 需要删除的订单司机信息主键
     * @return 结果
     */
    @Override
    public int deleteTbDriverDistributionByInformationIds(Long[] informationIds)
    {
        return tbDriverDistributionMapper.deleteTbDriverDistributionByInformationIds(informationIds);
    }

    /**
     * 删除订单司机信息信息
     * 
     * @param informationId 订单司机信息主键
     * @return 结果
     */
    @Override
    public int deleteTbDriverDistributionByInformationId(Long informationId)
    {
        return tbDriverDistributionMapper.deleteTbDriverDistributionByInformationId(informationId);
    }
}
